package mn.slide.petrovis;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;

public class PetrovisActivity extends Activity
{
	@Override
	public void onCreate( Bundle savedInstanceState )
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splashscreen);

		final Handler transThreadHandler = new Handler();
		new Thread()
		{
			public void run()
			{

				SystemClock.sleep(800);
				transThreadHandler.post(new Runnable()
				{
					public void run()
					{
						finish();
						startActivity(new Intent(PetrovisActivity.this, MainTabActivity.class));
						overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
					}
				});
			}
		}.start();
	}

}